import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [
  {
    path: '/homeviews',
    name: 'HomeViews',
    component: () => import('@/views/HomeViews.vue')
  },
  {
    path: '/hematown',
    name: 'HemaTown',
    component: () => import('@/views/HemaTown.vue')
  },
  {
    path: '/eateviews',
    name: 'EateViews',
    component: () => import('@/views/EateViews.vue')
  },
  {
    path: '/shopping',
    name: 'Shopping',
    component: () => import('@/views/Shopping.vue')
  }, {
    path: '/minviews',
    name: 'MinViews',
    component: () => import('@/views/MinViews.vue')
  },

  {
    path: '/',
    redirect: '/homeviews'
  }, {
    path: '*',
    name: 'no',
    component: () => import('@/views/NoN.vue')
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
